class AlarmBean {
  int total;
  int size;
  int pages;
  int pageSize;
  List<AlarmModuleItem> list;

  AlarmBean(Map data){
    List<AlarmModuleItem> newList = new List();

    this.total = data['total'];
    this.size = data['size'];
    this.pageSize = data['pageSize'];

    data['list'].forEach((e) => newList.add(AlarmModuleItem.fromJson(e)));

    this.list = newList;
  }

  @override
  String toString() {
    return 'AlarmBean{total: $total, size: $size, pages: $pages, pageSize: $pageSize, list: $list}';
  }

}

class AlarmModuleItem {
  String alarmDevicetypeName;
  String alarmStatusName;
  int alarmType;
  String createBy;
  String createTime;
  String equipmentId;
  String equipmentName;
  String equipmentPositionId;
  String equipmentPositionName;
  String id;
  String sensorItemId;
  String sourceId;
  String sourceName;
  int status;
  String text;
  int type;
  String updateBy;
  String updateTime;

  AlarmModuleItem(
      {this.alarmDevicetypeName,
        this.alarmStatusName,
        this.alarmType,
        this.createBy,
        this.createTime,
        this.equipmentId,
        this.equipmentName,
        this.equipmentPositionId,
        this.equipmentPositionName,
        this.id,
        this.sensorItemId,
        this.sourceId,
        this.sourceName,
        this.status,
        this.text,
        this.type,
        this.updateBy,
        this.updateTime});

  AlarmModuleItem.fromJson(Map<String, dynamic> json) {
    alarmDevicetypeName = json['alarmDevicetypeName'];
    alarmStatusName = json['alarmStatusName'];
    alarmType = json['alarmType'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    equipmentId = json['equipmentId'];
    equipmentName = json['equipmentName'];
    equipmentPositionId = json['equipmentPositionId'];
    equipmentPositionName = json['equipmentPositionName'];
    id = json['id'];
    sensorItemId = json['sensorItemId'];
    sourceId = json['sourceId'];
    sourceName = json['sourceName'];
    status = json['status'];
    text = json['text'];
    type = json['type'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['alarmDevicetypeName'] = this.alarmDevicetypeName;
    data['alarmStatusName'] = this.alarmStatusName;
    data['alarmType'] = this.alarmType;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['equipmentId'] = this.equipmentId;
    data['equipmentName'] = this.equipmentName;
    data['equipmentPositionId'] = this.equipmentPositionId;
    data['equipmentPositionName'] = this.equipmentPositionName;
    data['id'] = this.id;
    data['sensorItemId'] = this.sensorItemId;
    data['sourceId'] = this.sourceId;
    data['sourceName'] = this.sourceName;
    data['status'] = this.status;
    data['text'] = this.text;
    data['type'] = this.type;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    return data;
  }

  @override
  String toString() {
    return 'AlarmModuleItem{alarmDevicetypeName: $alarmDevicetypeName, alarmStatusName: $alarmStatusName, alarmType: $alarmType, createBy: $createBy, createTime: $createTime, equipmentId: $equipmentId, equipmentName: $equipmentName, equipmentPositionId: $equipmentPositionId, equipmentPositionName: $equipmentPositionName, id: $id, sensorItemId: $sensorItemId, sourceId: $sourceId, sourceName: $sourceName, status: $status, text: $text, type: $type, updateBy: $updateBy, updateTime: $updateTime}';
  }
}








